import Vue from 'vue'
import Router from 'vue-router'

const Index = () => import('@/views/index.vue')
const AuthUnsplashCallback = () => import('@/views/auth/unsplash/callback.vue')

Vue.use(Router)

const router = new Router({
  mode: 'history',
  routes: [
    {
      path: '/',
      name: 'index',
      component: Index
    },
    {
      path: '/auth/unsplash/callback',
      name: 'AuthUnsplashCallback',
      component: AuthUnsplashCallback
    }
  ]
})

export default router
